import React, { Fragment } from "react"
import { Route, Routes } from 'react-router-dom'
import "./App.less"
import AdMin from "./pages/AdMin"
import Login from './pages/Login'
class App extends React.Component {

  render() {
    return (
      <Fragment>
        {/* 注册路由 */}
        <Routes>
          <Route path='/login' element={<Login />} />
          <Route path='/admin' element={<AdMin />} />
          <Route path="*" element={<AdMin />}
          />
        </Routes>
      </Fragment>
    );
  }
}

export default App;
